package service;

import module.User;
import dao.UserDAO;

public class UserService {
	private UserDAO userDAO;

	public void init() {
		System.err.println(this.getClass().getName() + " is loaded !");
	}

	public UserDAO getUserDAO() {
		return userDAO;
	}

	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}

	public void save(User u) {
		userDAO.add(u);
	}
}
